package org.mall.modules.cash.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.mall.common.util.jsonschema.Long2StringSerializer;
import org.mall.common.util.jsonschema.String2LongDeserialize;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 提现信息记录表
 * @Author: jeecg-boot
 * @Date:   2019-12-31
 * @Version: V1.0
 */
@Data
@TableName("cash_info_log")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="cash_info_log对象", description="提现信息记录表")
public class CashInfoLog {
    
	/**id*/
	@TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "id")
	@JsonDeserialize(using = String2LongDeserialize.class)
	@JsonSerialize(using = Long2StringSerializer.class)
	private Long id;

	/**sellerId*/
	@Excel(name = "sellerId", width = 15)
    @ApiModelProperty(value = "sellerId")
	private String sellerId;
	@JsonDeserialize(using = String2LongDeserialize.class)
	@JsonSerialize(using = Long2StringSerializer.class)
	private Long cashId;

	private String wxOpenId;
	/**presentPrice*/
	@Excel(name = "presentPrice", width = 15)
    @ApiModelProperty(value = "presentPrice")
	private Integer presentPrice;
	/**result*/
	@Excel(name = "result", width = 15)
    @ApiModelProperty(value = "result")
	private Integer result;
	/**response*/
	@Excel(name = "response", width = 15)
    @ApiModelProperty(value = "response")
	private String response;
	/**adminUserId*/
	@Excel(name = "adminUserId", width = 15)
    @ApiModelProperty(value = "adminUserId")
	private String adminUserId;
	/**createTime*/
	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private Date createTime;
	/**updateTime*/
	@Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
	private Date updateTime;

	@TableField(exist = false)
	private List<CashDetailInfo> detailInfos;

	private Integer payChannel;

	private Integer  deleted;

	@TableField(exist = false)
	private Date createStartTime;
	@TableField(exist = false)
	private Date createEndTime;
	@TableField(exist = false)
	private String sellerUserName;
	@TableField(exist = false)
	private String adminUserName;

}


